#include <func.h>

int main(int argc,char *argv[])
{
    ARGS_CHECK(argc,2);
    int fd=open(argv[1],O_RDWR);
    ERROR_CHECK(fd,-1,"open");
    int sret=write(fd,"apple",5);
    ERROR_CHECK(sret,-1,"write");
    lseek(fd,-1,SEEK_CUR);
    write(fd,"0",1);
    close(fd);
    return 0;
}

